package com.ehotting.eaf.netty.domain;


import com.ehotting.eaf.core.text.UUID;

public class Request implements RequestAble {

    private static final long serialVersionUID = -2124760229478340631L;

    protected String action;
    protected String serial = String.valueOf(UUID.fastUUID().hashCode());
    protected String result;
    protected String msg;
    protected String device;
    protected String from;
    protected String arg;
    protected Integer counter;
    protected String token;
    protected Long userId;
    /**
     * 请求时间yyyyMMddHHmmss
     **/
    protected String timestamp;
    protected String id;
    protected boolean webNotice = true;


    public Request() {
        super();
    }

    public Request(String action) {
        super();
        this.action = action;
    }

    public Request(String action, String serial) {
        super();
        this.action = action;
        this.serial = serial;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    @Override
    public String getResult() {
        return result;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public void setResult(String result) {
        this.result = result;

    }

    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String getDevice() {
        return this.device;
    }

    @Override
    public void setDevice(String device) {
        this.device = device;
    }


    @Override
    public String getArg() {
        return this.arg;
    }

    @Override
    public void setArg(String arg) {

        this.arg = arg;
    }

    @Override
    public String getFrom() {
        return from;
    }

    @Override
    public void setFrom(String from) {
        this.from = from;
    }


    @Override
    public Integer getCounter() {
        return counter;
    }

    @Override
    public void setCounter(Integer counter) {
        this.counter = counter;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public boolean isWebNotice() {
        return webNotice;
    }

    @Override
    public void setWebNotice(boolean webNotice) {
        this.webNotice = webNotice;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }


}